class TransactionHistory {
  late String amountUnit;
  late int amountValue;
  late int createTime;
  late String status;

  TransactionHistory(
      {required this.amountUnit, required this.amountValue, required this.createTime, required this.status});

  TransactionHistory.fromJson(Map<String, dynamic> json) {
    amountUnit = json['amountUnit'];
    amountValue = json['amountValue'];
    createTime = json['createTime'];
    status = json['status'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['amountUnit'] = this.amountUnit;
    data['amountValue'] = this.amountValue;
    data['createTime'] = this.createTime;
    data['status'] = this.status;
    return data;
  }
}
